package pt.iul.dcti.poo.financemanager.accounts;

import java.util.ArrayList;

import pt.iul.dcti.poo.financemanager.categories.Category;
import pt.iul.dcti.poo.financemanager.date.Date;

public class SavingsAccount extends Account {

	public static Category savingsCategory = new Category("SAVINGS");

	public SavingsAccount(long id, String name){
		super(id, name);
	}
	
	public SavingsAccount(long id, String name, String additionalInfo, double currentBalance, Date startDate, Date endDate, ArrayList<StatementLine> listaMovimentos) {
		super(id, name, additionalInfo, currentBalance, startDate, endDate, listaMovimentos);
	}

	public long getId(){
		return id;
	}
	
	public void setId(long id) {
		this.id = id;
	}
	
	public  String getName(){
		return name;
	}
	
	public void setName(String name){
		this.name = name;
	}
	
	@Override
	public double estimatedAverageBalance() {
		return currentBalance();
	}

	@Override
	public double getInterestRate() {
		return BanksConstants.savingsInterestRate();
	}

	
	

}
